package cn.momoshenchi.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName tips
 */
@TableName(value ="tips")
public class Tips implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private String description1;

    /**
     * 
     */
    private String description2;

    /**
     * 
     */
    private String description3;

    /**
     * 
     */
    private String description4;

    /**
     * 
     */
    private String img;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer isValid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getContent() {
        return content;
    }

    /**
     * 
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 
     */
    public String getDescription1() {
        return description1;
    }

    /**
     * 
     */
    public void setDescription1(String description1) {
        this.description1 = description1;
    }

    /**
     * 
     */
    public String getDescription2() {
        return description2;
    }

    /**
     * 
     */
    public void setDescription2(String description2) {
        this.description2 = description2;
    }

    /**
     * 
     */
    public String getDescription3() {
        return description3;
    }

    /**
     * 
     */
    public void setDescription3(String description3) {
        this.description3 = description3;
    }

    /**
     * 
     */
    public String getDescription4() {
        return description4;
    }

    /**
     * 
     */
    public void setDescription4(String description4) {
        this.description4 = description4;
    }

    /**
     * 
     */
    public String getImg() {
        return img;
    }

    /**
     * 
     */
    public void setImg(String img) {
        this.img = img;
    }

    /**
     * 
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 
     */
    public Integer getIsValid() {
        return isValid;
    }

    /**
     * 
     */
    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Tips other = (Tips) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()))
            && (this.getDescription1() == null ? other.getDescription1() == null : this.getDescription1().equals(other.getDescription1()))
            && (this.getDescription2() == null ? other.getDescription2() == null : this.getDescription2().equals(other.getDescription2()))
            && (this.getDescription3() == null ? other.getDescription3() == null : this.getDescription3().equals(other.getDescription3()))
            && (this.getDescription4() == null ? other.getDescription4() == null : this.getDescription4().equals(other.getDescription4()))
            && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsValid() == null ? other.getIsValid() == null : this.getIsValid().equals(other.getIsValid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        result = prime * result + ((getDescription1() == null) ? 0 : getDescription1().hashCode());
        result = prime * result + ((getDescription2() == null) ? 0 : getDescription2().hashCode());
        result = prime * result + ((getDescription3() == null) ? 0 : getDescription3().hashCode());
        result = prime * result + ((getDescription4() == null) ? 0 : getDescription4().hashCode());
        result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsValid() == null) ? 0 : getIsValid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", content=").append(content);
        sb.append(", description1=").append(description1);
        sb.append(", description2=").append(description2);
        sb.append(", description3=").append(description3);
        sb.append(", description4=").append(description4);
        sb.append(", img=").append(img);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isValid=").append(isValid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}